#include <stdio.h>

void fa(int arr[5]){//看起来是数组，其实是指针。
	printf("size = %d\n",sizeof(arr));
	printf("fa is called \n");
}
//arr可以不指定长度，用第二个参数lenght传入
void fb(int arr[],int lenght){//lenght是数组的长度
	printf("fb is called \n");
	int i;
	for(i=0;i<lenght;i++){
		printf("%d \n",arr[i]);
	}
}

int main(){
	int brr[5];
	fa(brr);
	int crr[4];
	fa(crr);
	int drr[5]= {1,2,3,4,5};
	fb(drr,5);
}
